import StackViewer from '@renderer/views/imgViewer/stack/StackViewer.vue'
import VolumeViewer from '@renderer/views/imgViewer/3d/VolumeViewer.vue'
import { createRouter, createWebHashHistory } from 'vue-router'
import MprViewer from '@renderer/views/imgViewer/mpr/MprViewer.vue'

const routes = [
  {
    path: '/stack',
    name: 'stack',
    component: StackViewer
  },
  {
    path: '/mpr',
    name: 'mpr',
    component: MprViewer
  },
  {
    path: '/volume',
    name: 'volume',
    component: VolumeViewer
  }
]
const router = createRouter({
  // 4. 内部提供了 history 模式的实现。为了简单起见，我们在这里使用 hash 模式。
  history: createWebHashHistory(),
  routes: routes
})

export { router, routes }
